import request from '@/utils/request';

export async function getCabinetQualityByPage (params: any) {
    return request('/api/quality/getCabinetQualityByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addCabinetQuality (params: any) {
    return request('/api/quality/addCabinetQuality', {
    method: 'POST',
    data: params,
  });
}

export async function updateCabinetQuality (params: any) {
    return request('/api/quality/updateCabinetQuality', {
    method: 'POST',
    data: params,
  });
}

export async function delCabinetQuality (params: any) {
    return request('/api/quality/delCabinetQuality', {
    method: 'POST',
    data: params,
  });
}


export async function exportCabinetQuality(params: any) {
    return request('/api/quality/exportCabinetQuality', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getCabinetQualityByPage, addCabinetQuality, updateCabinetQuality, delCabinetQuality, exportCabinetQuality }
